using AiQiuQuan.Sport.Model.Enums;

namespace AiQiuQuan.Sport.Model.Models
{
    /// <summary>
    /// 比赛队伍抽签信息dto
    /// </summary>
    public class GameGroupDrawTeamDto : BaseDto
    {
        /// <summary>
        /// 比赛ID
        /// </summary>
        public Guid GameId { get; set; }

        /// <summary>
        /// 对阵类型，1单打、2双打、3男单、4女单、5男双、6女双、7混双
        /// </summary>
        public GameVersusEnum VersusType { get; set; }

        /// <summary>
        /// 队伍名称
        /// </summary>
        public string Name { get; set; }

        /// <summary>
        /// 头像
        /// </summary>
        public string? HeadUrl { get; set; }

        /// <summary>
        /// 分组序号
        /// </summary>
        public int GroupNo { get; set; }

        /// <summary>
        /// 队伍编号
        /// </summary>
        public string TeamNo { get; set; }

        /// <summary>
        /// 用户1ID
        /// </summary>
        public Guid User1Id { get; set; }

        /// <summary>
        /// 用户1姓名
        /// </summary>
        public string User1Name { get; set; }

        /// <summary>
        /// 用户1头像
        /// </summary>
        public string User1HeadUrl { get; set; }

        /// <summary>
        /// 用户1水平
        /// </summary>
        public string User1TennisLevel { get; set; }

        /// <summary>
        /// 用户2ID，单打时无效
        /// </summary>
        public Guid? User2Id { get; set; }

        /// <summary>
        /// 用户2姓名
        /// </summary>
        public string? User2Name { get; set; }

        /// <summary>
        /// 用户2头像
        /// </summary>
        public string? User2HeadUrl { get; set; }

        /// <summary>
        /// 用户2水平
        /// </summary>
        public string User2TennisLevel { get; set; }

        /// <summary>
        /// 显示队伍号：A
        /// </summary>
        public string ShowTeamNo => string.IsNullOrWhiteSpace(TeamNo) ? string.Empty : TeamNo.Substring(TeamNo.Length - 1);
    }
}
